package com.framework.service;

import com.baomidou.mybatisplus.service.IService;
import com.framework.entity.ter.TerTerminalDue;
import com.framework.entity.ter.TerTerminalInfo;
import com.framework.page.PageUtils;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 返现期限
 * @author
 */
public interface TerTerminalDueService extends IService<TerTerminalDue> {
    /**
     * 处理订单时添加记录
     * @param tempList
     * @param isOnline
     * @param reapAmount
     * @param dueDate
     * @param afterCash
     * @param deptId
     */
    void addTerminalDueList(List<TerTerminalInfo> tempList, Long isOnline, BigDecimal reapAmount, Date dueDate, BigDecimal afterCash, Long deptId);

    /**
     * 查询返现期限列表
     * @param params
     * @return
     */
    PageUtils queryDuePageByMap(Map<String, Object> params);

    /**
     * 根据id列表查询
     * @param idList
     * @return
     */
    Map<String, Object> getInfoByIdList(Integer[] idList);

    /**
     * 批量修改
     * @param activDue
     */
    void updateByIdList(Map<String, Object> activDue);
}
